#pragma once

class CVector2f
{
public:
	float x;
	float y;

public:
	CVector2f(float x, float y);
	CVector2f(void);
	~CVector2f(void);


	CVector2f operator+ (const CVector2f& v)const;

	//!Redefinition of the - operator
	/*!
	\param v The vector to substract
	\return  The result vector this - v
	*/
	CVector2f operator- (const CVector2f& v)const;

	//!Redefintion of the operator !=
	/*!
	\param v The vector to test
	\return True if this and v are the same. False if there are different
	*/
	bool operator != (const CVector2f& v)const;

	CVector2f operator* (float)const;

	bool operator== (const CVector2f& v)const;

	CVector2f rotate(const float angle)const;

	void normalize();

	float getNorme()const;

	float dot(const CVector2f& v)const;

};
